<template>
<a-config-provider :locale='zhCN'>
  <div style="min-width:1300px">
    <router-view></router-view>
  </div>
</a-config-provider>
</template>



<script lang='ts' setup>
  import dayjs from 'dayjs';
  import 'dayjs/locale/zh-cn';
  import zhCN from 'ant-design-vue/es/locale/zh_CN';
  import { useStore } from 'vuex';
  dayjs.locale('zh-cn')

  const $store = useStore()

  if($store.state.login.auth) {
    $store.dispatch('msgCount')
  }

  

</script>
